
public class Body {
   private int mass = 10;
   private Location loc = new Location();

   public int getMass() {
      return mass;
   }
   public void setMass(int mass) {
      this.mass = mass;
   }
   public Location getLocation() {
      return new Location(loc.x, loc.y, loc.z);
   }
   public void move() {
      // we're just moving at random here
      // in a real sim we'd have forces and such
      loc.x += 1;
      loc.y += 2;
      loc.z += 3;
   }
}
